
export function debounce(fn:Function,wait: number){
    var timer: any = null;
    return function(){
        clearTimeout(timer)
        timer = setTimeout(()=>{
            fn()
        },wait)
    }
}
